#!/bin/bash
pid=`ps aux|grep main.py|grep -v grep|awk '{print $2}'`
kill -9 $pid
nohup python3 -u /opt/StockMonitor/main.py &